package com.wanmait.meteor.controller;

import com.wanmait.meteor.pojo.Meetinfo;
import com.wanmait.meteor.service.MeetinfoService;
import com.wanmait.meteor.util.IgnoreToken;
import com.wanmait.meteor.util.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@IgnoreToken
@RestController
@CrossOrigin
@RequestMapping("/web")
public class WebMeetController {
    @Resource
    private MeetinfoService meetinfoService;

    //wf 通过id查询会议的信息（包括了会议等级）
    @RequestMapping("/selectAMeetinfo")
    public Result selectAMeetinfo(Integer id){
       Meetinfo meetinfo= meetinfoService.selectAMeetinfo(id);
       return Result.success(meetinfo);
    }
}
